package com.yanqu.road.server.cmd.activity.musicroomrank.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.MusicRoomRankProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.musicroom.MusicRoomRankActivityModule;
import com.yanqu.road.server.gameplayer.module.player.PreReduceModule;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.utils.property.Property;
import com.yanqu.road.utils.property.PropertyHelper;
import com.yanqu.road.utils.string.StringUtils;

@Cmd(code = GameProtocol.S_MUSIC_ROOM_RANK_JOIN_CROSS_BACK, desc = "妙音坊冲榜 参赛结果返回")
public class MusicRoomRankJoinShowCrossBackCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        MusicRoomRankProto.CrossMusicRoomRankJoinShowBackMsg backMsg = MusicRoomRankProto.CrossMusicRoomRankJoinShowBackMsg.parseFrom(packet.getBytes());
        player.getModule(MusicRoomRankActivityModule.class).joinShowCrossBack(backMsg);
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
